<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<title>出价记录</title>
<script src="https://cdn.staticfile.org/vue/2.4.2/vue.min.js"></script>
<script src="https://cdn.staticfile.org/axios/0.18.0/axios.min.js"></script>
<link rel="icon" href="favicon.ico" type="image/ico">
<meta name="keywords" content="LightYear,光年,后台模板,后台管理系统,光年HTML模板">
<meta name="description" content="LightYear是一个基于Bootstrap v3.3.7的后台管理系统的HTML模板。">
<meta name="author" content="yinqi">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/materialdesignicons.min.css" rel="stylesheet">
<link href="css/style.min.css" rel="stylesheet">
</head>
  
<body>
<div class="container-fluid p-t-15">

    <div id="app" style="position: fixed;margin-top:30px;left: 300px">
    	 <div id="apps"><input v-model="ee" id="div1" type="text" value="dasda"><button @click="lookfor(biddes)">查询</button></div> 
    
        <table border="1px"width="800">
            <tr id="saleloglul"style="font-size: 24px;">
                <!-- <td class="jingpaili">序             号</td> -->
                
                <td class="jingpaili">竞价室id</td>
                <td class="jingpaili">竞价人名</td>
                <td class="jingpaili">竞价价格</td>
                <td class="jingpaili">竞价时间</td>
            </tr>
            <tr v-for="b in biddes">
            	
            	
            	<td>{{b.br_id}}</td>
            	<td>{{b.alias}}</td>
            	<td>{{b.price}}</td>
           		 <td>{{b.time}}</td>
            </tr>
        </table>
    </div>
  
  
</div>
<script type="text/javascript">
new Vue  ({
		el:"#app",
		data:{
			biddes:[],
			ee:''
		},
				
		mounted(){
			alert("方法进入");
			axios.get("BiddingRoom/salelogAll").then(res =>{
				this.biddes = res.data.data;
				console.info(this.biddes);
			})
	
		},
		 methods:{
			lookfor:function(biddes){
				
				var sss = new Array();
				var www= 0; 
				 for(var i =0;i<biddes.length;i++){
					
					var b =biddes[i];
					if(this.ee ==b.br_id){
						
						sss[www] = b;
						www=www+1;
	
					}
	
				} 
				 console.info(sss);
					this.biddes = sss;	
			}
		},
		
		
	})
	
	
	
				
	



</script>



<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/main.min.js"></script>
<html xmlns:th="http://www.thymeleaf.org"
	xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
</body>
</html>